package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 采购单对象 tb_delivery
 *
 * @author ruoyi
 * @date 2024-09-05
 */
public class Delivery extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 采购单编号
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 标题
     */
    @Excel(name = "标题")
    private String title;
    /**
     * 学校id
     */
    @Excel(name = "学校id")
    private Long schoolId;

    /**
     * 部门id
     */
    private Long deptId;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    private Long userId;

    /**
     * 配送时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "配送时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date sendTime;

    /**
     * 收货金额
     */
    @Excel(name = "收货金额")
    private BigDecimal money;

    /**
     * 配送金额
     */
    @Excel(name = "配送金额")
    private BigDecimal sendMoney;

    /**
     * 单据状态
     */
    @Excel(name = "单据状态")
    private Integer status;

    /**
     * 是否确认
     */
    @Excel(name = "是否确认")
    private Integer isTrue;

    /**
     * type
     */
    @Excel(name = "type")
    private Long type;

    /**
     * 竞标项目日志id
     */
    private Long logId;

    private Integer updateLock;

    /**
     * 0正常 1删除
     */
    @Excel(name = "0正常 1删除")
    private Integer deleted;

    /**
     * 学校名称
     */
    private String schoolName;
    /**
     * 公司名称
     */
    private String deptName;
    /**
     * 学校联系方式
     */
    private String schoolPhone;

    /**
     * 全部清单
     */
    private Long count_all;
    /**
     * 已验收清单
     */
    private Long count_ok;

    /**
     * 查询日期
     */
    private String week;

    public String getWeek() {
        return week;
    }

    public void setWeek(String week) {
        this.week = week;
    }

    public Long getCount_all() {
        return count_all;
    }

    public void setCount_all(Long count_all) {
        this.count_all = count_all;
    }

    public Long getCount_ok() {
        return count_ok;
    }

    public void setCount_ok(Long count_ok) {
        this.count_ok = count_ok;
    }

    public Integer getUpdateLock() {
        return updateLock;
    }

    public void setUpdateLock(Integer updateLock) {
        this.updateLock = updateLock;
    }

    public String getSchoolPhone() {
        return schoolPhone;
    }

    public void setSchoolPhone(String schoolPhone) {
        this.schoolPhone = schoolPhone;
    }

    public Long getLogId() {
        return logId;
    }

    public void setLogId(Long logId) {
        this.logId = logId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public BigDecimal getSendMoney() {
        return sendMoney;
    }

    public void setSendMoney(BigDecimal sendMoney) {
        this.sendMoney = sendMoney;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getSchoolName() {
        return schoolName;
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setSchoolId(Long schoolId) {
        this.schoolId = schoolId;
    }

    public Long getSchoolId() {
        return schoolId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    public void setIsTrue(Integer isTrue) {
        this.isTrue = isTrue;
    }

    public Integer getIsTrue() {
        return isTrue;
    }

    public void setType(Long type) {
        this.type = type;
    }

    public Long getType() {
        return type;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public Integer getDeleted() {
        return deleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("schoolId", getSchoolId())
                .append("userId", getUserId())
                .append("sendTime", getSendTime())
                .append("money", getMoney())
                .append("status", getStatus())
                .append("isTrue", getIsTrue())
                .append("type", getType())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("deleted", getDeleted())
                .toString();
    }
}
